package com.zjj.learn.javaplus.pkg02.demo28;

public class Cock extends Fowl {
    public Cock() {
        super();
    }

    public Cock(String color, Integer age) {
        super(color, age);
    }

    @Override
    public void eat() {
        System.out.println(super.getAge() + "岁的" + super.getColor() + "的公鸡在啄米");
    }

    public void crowing() {
        System.out.println(super.getAge() + "岁的" + super.getColor() + "的公鸡在打鸣");
    }
}
